package com.atmc.service.impl;

import com.atmc.entity.Authority;
import com.atmc.mapper.AuthorityMapper;
import com.atmc.service.AuthorityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @BelongsProject: SpringCloud1216
 * @BelongsPackage: com.com.atmc.service.impl
 * @Author: chuyings
 * @CreateTime: 2022-10-31  12:42
 * @Version: 1.0
 */
@Service
public class AuthorityServiceImpl implements AuthorityService {
    @Autowired
    AuthorityMapper authorityMapper;

    @Override
    public List<Authority> selectAuthority(Long userId) {
        return authorityMapper.selectAuthority(userId);
    }

    @Override
    public int insertOne(Authority authority) {
        return authorityMapper.insertOne(authority);
    }

    @Override
    public Authority selectOne(Long authorId) {
        return authorityMapper.selectOne(authorId);
    }
}
